//
//  ViewController3.m
//  MyWeChat
//
//  Created by 蔡欣东 on 15/10/6.
//  Copyright © 2015年 蔡欣东. All rights reserved.
//

#import "ViewController3.h"
#import "AppDelegate.h"
@interface ViewController3 ()

@end

@implementation ViewController3

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)loginOffBtnClick:(UIButton *)sender {
    [((AppDelegate*)[UIApplication sharedApplication].delegate) loginOff];
    
    [[NSUserDefaults standardUserDefaults]removeObjectForKey:USERNAME];
    [[NSUserDefaults standardUserDefaults]removeObjectForKey:PASSWORD];
    [[NSUserDefaults standardUserDefaults] synchronize];
    
    [((AppDelegate*)[UIApplication sharedApplication].delegate) showLoginView:true];
}



@end
